cmake_minimum_required(VERSION 3.5.0)

set(CMAKE_CXX_STANDARD 17)

file(GLOB local_src *.cpp)
file(GLOB local_headers *.h)

add_library(fxcc_test_e2d_core ${local_src} ${local_headers})

if(E2D_BUILD_TRANS)
add_subdirectory(trans)
endif()

if(E2D_BUILD_RENDER)
add_subdirectory(render)
endif()

if(E2D_BUILD_PHYSICS)
add_subdirectory(physics)
endif()

if(E2D_BUILD_AUDIO)
add_subdirectory(audio)
endif()

if(E2D_BUILD_FUI)
add_subdirectory(fui)
endif()

add_subdirectory(impl)